<include file="Public:header"/>

<div class="roadbar">
    <div class="container"><strong>权限节点</strong></div>
</div>

<div class="main">
    <div class="container">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th width="15%">ID</th>
                    <th width="15%">MODEL</th>
                    <th>节点名称</th>
                    <th width="15%">状态</th>
                    <th width="15%">排序</th>
                    <th width="15%">操作</th>
                </tr>
            </thead>
            <tbody>

            <volist name="data.data" id="v">
                <tr>
                    <td>{$v.mod_id}</td>
                    <td>{$v.mod_module}</td>
                    <td>{$v.mod_name}</td>
                    <td>
                        <if condition="$v.mod_status eq 1">
                            <a type="button" class="btn btn-success btn-xs">使用中</a>
                        <else/>
                            <a type="button" class="btn btn-danger btn-xs">停止</a>
                        </if>
                    </td>
                    <td>{$v.mod_sort}</td>
                    <td>
                        <if condition="$v.mod_status eq 1">
                            <a href="{:U('Record/stat','type=mannode&str=mod_status&id='.$v['mod_id'])}">停止</a>
                            <else/>
                            <a href="{:U('Record/stat','type=mannode&str=mod_status&id='.$v['mod_id'])}">启用</a>
                        </if>
                    </td>
                </tr>
            </volist>

            <tr>
                <td colspan="6">{$data.page}</td>
            </tr>

            </tbody>
        </table>


    </div>
</div>

<include file="Public:footer"/>
